<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>BabyOS: b_hal.h Source File</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="2.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">BabyOS
   &#160;<span id="projectnumber">V1.1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',false,false,'search.php','Search');
});
/* @license-end */</script>
<div id="main-nav"></div>
<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="dir_b9223522bb56aee4ab59f7ba381d2163.html">bos</a></li><li class="navelem"><a class="el" href="dir_f8a0fa7de2fa8ec1cbca46d8cda2da54.html">hal</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="headertitle">
<div class="title">b_hal.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="b__hal_8h.html">Go to the documentation of this file.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00031"></a><span class="lineno">   31</span>&#160;<span class="preprocessor">#ifndef __B_HAL_H__</span></div><div class="line"><a name="l00032"></a><span class="lineno">   32</span>&#160;<span class="preprocessor">#define __B_HAL_H__</span></div><div class="line"><a name="l00033"></a><span class="lineno">   33</span>&#160;</div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00035"></a><span class="lineno">   35</span>&#160; <span class="keyword">extern</span> <span class="stringliteral">&quot;C&quot;</span> {</div><div class="line"><a name="l00036"></a><span class="lineno">   36</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00037"></a><span class="lineno">   37</span>&#160;</div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;<span class="comment">/*Includes ----------------------------------------------*/</span></div><div class="line"><a name="l00039"></a><span class="lineno">   39</span>&#160;<span class="preprocessor">#include &quot;<a class="code" href="b__config_8h.html">b_config.h</a>&quot;</span> </div><div class="line"><a name="l00040"></a><span class="lineno">   40</span>&#160;<span class="preprocessor">#include &quot;stm32f1xx_hal.h&quot;</span></div><div class="line"><a name="l00041"></a><span class="lineno">   41</span>&#160;</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___defines.html#ga3df8c78e1d68d69f629630fb6095cec1">   65</a></span>&#160;<span class="preprocessor">#define FLASH_CS_RESET()            HAL_GPIO_WritePin(W25X_CS_GPIO_Port, W25X_CS_Pin, GPIO_PIN_RESET)</span></div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___defines.html#gadc9743a09abcf9e1d203bdd5081db24a">   66</a></span>&#160;<span class="preprocessor">#define FLASH_CS_SET()              HAL_GPIO_WritePin(W25X_CS_GPIO_Port, W25X_CS_Pin, GPIO_PIN_SET)</span></div><div class="line"><a name="l00067"></a><span class="lineno">   67</span>&#160;</div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___defines.html#gac5645a8f806359e621559359dadfc7c5">   68</a></span>&#160;<span class="preprocessor">#define S_TX_PIN_SET()              HAL_GPIO_WritePin(SUART_TX_GPIO_Port, SUART_TX_Pin, GPIO_PIN_SET)</span></div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___defines.html#gadd41bc5ddcf6f842928efc4f0d944a57">   69</a></span>&#160;<span class="preprocessor">#define S_TX_PIN_RESET()            HAL_GPIO_WritePin(SUART_TX_GPIO_Port, SUART_TX_Pin, GPIO_PIN_RESET)</span></div><div class="line"><a name="l00070"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___defines.html#gac1fbe03efbe22feb97f198a4dd8b1237">   70</a></span>&#160;<span class="preprocessor">#define S_RX_PIN_READ()             HAL_GPIO_ReadPin(SUART_RX_GPIO_Port, SUART_RX_Pin)</span></div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___defines.html#gab8f742cb77b6722531d6e265043768ee">   72</a></span>&#160;<span class="preprocessor">#define TP_CS_RESET()               HAL_GPIO_WritePin(TP_CS_GPIO_Port, TP_CS_Pin, GPIO_PIN_RESET)</span></div><div class="line"><a name="l00073"></a><span class="lineno"><a class="line" href="group___h_a_l___exported___defines.html#gaba8a54cd6e309557b45081d3fc38b141">   73</a></span>&#160;<span class="preprocessor">#define TP_CS_SET()                 HAL_GPIO_WritePin(TP_CS_GPIO_Port, TP_CS_Pin, GPIO_PIN_SET)</span></div><div class="line"><a name="l00074"></a><span class="lineno">   74</span>&#160;</div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#gac4b3d313f1c9c001234743725e491b9a">bHalEnterCritical</a>(<span class="keywordtype">void</span>); </div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#ga9b005cf96b043e836780e1cc1b9254fc">bHalExitCritical</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#ga1e845f28a0763b4046d1c7cdcf227e52">bHalIncSysTick</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00105"></a><span class="lineno">  105</span>&#160;<span class="keywordtype">void</span> <a class="code" href="group___h_a_l___exported___functions.html#ga67c9cec578e4150ae30c526e88e60f97">bHalInit</a>(<span class="keywordtype">void</span>);</div><div class="line"><a name="l00118"></a><span class="lineno">  118</span>&#160;<span class="preprocessor">#ifdef __cplusplus</span></div><div class="line"><a name="l00119"></a><span class="lineno">  119</span>&#160;    }</div><div class="line"><a name="l00120"></a><span class="lineno">  120</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00121"></a><span class="lineno">  121</span>&#160; </div><div class="line"><a name="l00122"></a><span class="lineno">  122</span>&#160;<span class="preprocessor">#endif</span></div><div class="line"><a name="l00123"></a><span class="lineno">  123</span>&#160;</div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;<span class="comment">/************************ Copyright (c) 2019 Bean *****END OF FILE****/</span></div><div class="line"><a name="l00126"></a><span class="lineno">  126</span>&#160;</div><div class="line"><a name="l00127"></a><span class="lineno">  127</span>&#160;</div><div class="ttc" id="group___h_a_l___exported___functions_html_ga9b005cf96b043e836780e1cc1b9254fc"><div class="ttname"><a href="group___h_a_l___exported___functions.html#ga9b005cf96b043e836780e1cc1b9254fc">bHalExitCritical</a></div><div class="ttdeci">void bHalExitCritical()</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00119">b_hal.c:119</a></div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_ga1e845f28a0763b4046d1c7cdcf227e52"><div class="ttname"><a href="group___h_a_l___exported___functions.html#ga1e845f28a0763b4046d1c7cdcf227e52">bHalIncSysTick</a></div><div class="ttdeci">void bHalIncSysTick()</div><div class="ttdoc">Call this function _TICK_FRQ_HZ times per second _TICK_FRQ_HZ. </div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00128">b_hal.c:128</a></div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_ga67c9cec578e4150ae30c526e88e60f97"><div class="ttname"><a href="group___h_a_l___exported___functions.html#ga67c9cec578e4150ae30c526e88e60f97">bHalInit</a></div><div class="ttdeci">void bHalInit()</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00134">b_hal.c:134</a></div></div>
<div class="ttc" id="b__config_8h_html"><div class="ttname"><a href="b__config_8h.html">b_config.h</a></div></div>
<div class="ttc" id="group___h_a_l___exported___functions_html_gac4b3d313f1c9c001234743725e491b9a"><div class="ttname"><a href="group___h_a_l___exported___functions.html#gac4b3d313f1c9c001234743725e491b9a">bHalEnterCritical</a></div><div class="ttdeci">void bHalEnterCritical()</div><div class="ttdef"><b>Definition:</b> <a href="b__hal_8c_source.html#l00114">b_hal.c:114</a></div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
